import 'package:http/http.dart' as http;

void main() async {
  var uri = Uri.http('www.baidu.com', '');

  var response = await http.get(uri);


  if (response.statusCode == 200) {
    print(response.body);
  } else {
    print('request error');
  }
}
